package com.liangwj.springbootdesignpatterns.createTypePatterns.factoryMethod;
/**
 * <b>Description:</b> factoyMethodTest <br/>
 * @author Lingwenjun
 * @date 2019/1/21-12:02
 * @version 1.0
 */
public class factoyMethodTest {
    public static void main(String[] args) {
        Provider provider = new MailSenderFactory();
        Provider provider1 = new SmsSenderFactory();
        Sender sender = provider.produce();
        sender.send();

        Sender sender1 = provider1.produce();
        sender1.send();
    }
}
